var Mock = require('mockjs')

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": {
      "date":"2013-02-04T22:44:30.652Z",
      "fundId":"559",
      "orderNo":26,
        "fundList": [ //用于下拉列表（UI上没有画出）
        {
            "value": "559"
        },
        {
            "value": "537"
        }],
        "table": {
            "title": [ //表格title
            {
                "column": "orderNo",
                "name": "订单序号"
            },
            {
                "column": "stockCode",
                "name": "股票代码"
            },
            {
                "column": "operationCost",
                "name": "操作机会成本"
            },
            {
                "column": "timeCost",
                "name": "市场时间成本"
            },
            {
                "column": "impactCost",
                "name": "市场冲击及买卖价差成本"
            },
            {
                "column": "opportunityCost",
                "name": "机会成本"
            },
            {
                "column": "explicitCost",
                "name": "显性成本"
            }],
            "data|10": [ //表格Data
            {
                "orderNo|+1": 26,
                "stockCode": "@integer(1,10000).SH",
                "operationCost": "@integer(1,1000)",
                "timeCost": "@float(-100000,100000,0,3)",
                "impactCost": "@float(-100000,100000,0,3)",
                "opportunityCost": "@float(-100000,100000,0,2)",
                "explicitCost": "@integer(1,100000)"
            }],
            "keyRow": "orderNo"
        },
        "trendChart": {
            "xaixs": { //TWAP/VWAP趋势图横轴，时间，s级，上千个数据
                "data|240": ["09:32:01"]
            },
            "data": [{
                "name": "VWAP",
                //VWAP，折线
                "style": "line",
                "data|240": ["@float(0,100,0,4)"]
            },
            {
                "name": "TWAP",
                //TWAP折线
                "style": "line",
                "data|240": ["@float(0,100,0,4)"]
            },
            {
                "name": "执行价格",
                //执行价格，梯形线
                "style": "step",
                "data|240": ["@float(0,100,0,4)"]
            }]
        },
        "pie": {
            "legend": { //饼图图例
                "data": ["操作机会成本", "市场时间成本", "市场冲击及买卖价差成本", "机会成本", "显性成本"]
            },
            "data": [ //饼图数据
            {
                "value": "@float(0,99999,0,3)",
                "name": "操作机会成本"
            },
            {
                "value": "@float(0,99999,0,3)",
                "name": "市场时间成本"
            },
            {
                "value": "@float(0,99999,0,3)",
                "name": "市场冲击及买卖价差成本"
            },
            {
                "value": "@float(0,99999,0,3)",
                "name": "机会成本"
            },
            {
                "value": "@float(0,99999,0,3)",
                "name": "显性成本"
            }]
        }
    }
})
}
